home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994…tember: Reference Library / Dev.CD Sep 94.toast / Periodicals / develop / develop Issue 16 / develop 16 code / CollaboDraw / IconSuites.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-24  |  4.8 KB  |  94 lines  |  [TEXT/KAHL]

  1. #define    ttNone    0
  2. #define atNone    0
  3.  
  4. /* C Typedefs */
  5.  
  6. typedef pascal OSErr   (*IconAction)(ResType theType, Handle *theIcon, void *yourDataPtr);
  7. typedef pascal Handle  (*IconGetter)(ResType theType, void *yourDataPtr);
  8. #ifndef __OCESTANDARDDIRECTORY__
  9. typedef unsigned long  IconSelectorValue;
  10. #endif
  11. typedef short          IconAlignmentType;
  12. typedef short          IconTransformType;
  13.  
  14. /* C Glue */
  15.  
  16. pascal OSErr PlotIconID(const Rect *theRect, IconAlignmentType align,
  17.                         IconTransformType transform, short theResID)
  18.        =  {0x303C, 0x0500, 0xABC9};
  19. pascal OSErr NewIconSuite(Handle *theIconSuite)
  20.        =  {0x303C, 0x0207, 0xABC9};
  21. pascal OSErr AddIconToSuite(Handle theIconData, Handle theSuite, ResType theType)
  22.        =  {0x303C, 0x0608, 0xABC9};
  23. pascal OSErr GetIconFromSuite(Handle *theIconData, Handle theSuite, ResType theType)
  24.        =  {0x303C, 0x0609, 0xABC9};
  25. pascal OSErr ForEachIconDo(Handle theSuite, IconSelectorValue selector, IconAction action,
  26.                            void *yourDataPtr)
  27.        =  {0x303C, 0x080A, 0xABC9};
  28. pascal OSErr GetIconSuite(Handle *theIconSuite, short theResID, IconSelectorValue selector)
  29.        =  {0x303C, 0x0501, 0xABC9};
  30. pascal OSErr DisposeIconSuite(Handle theIconSuite, Boolean disposeData)
  31.        =  {0x303C, 0x0302, 0xABC9};
  32. pascal OSErr PlotIconSuite(const Rect *theRect, IconAlignmentType align,
  33.                            IconTransformType transform, Handle theIconSuite)
  34.        =  {0x303C, 0x0603, 0xABC9};
  35. pascal OSErr MakeIconCache(Handle *theHandle, IconGetter makeIcon, void *yourDataPtr)
  36.        =  {0x303C, 0x0604, 0xABC9};
  37. pascal OSErr LoadIconCache(const Rect *theRect, IconAlignmentType align,
  38.                            IconTransformType transform, Handle theIconCache)
  39.        =  {0x303C, 0x0606, 0xABC9};
  40. pascal OSErr PlotIconMethod(const Rect *theRect, IconAlignmentType align,
  41.                             IconTransformType transform, IconGetter theMethod,
  42.                             void *yourDataPtr)
  43.        =  {0x303C, 0x0805, 0xABC9};
  44. pascal OSErr GetLabel(short labelNumber, RGBColor *labelColor, Str255 labelString)
  45.        =  {0x303c, 0x050B, 0xABC9};
  46. pascal Boolean PtInIconID(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  47.                           short iconID)
  48.        =  {0x303c, 0x060D, 0xABC9};
  49. pascal Boolean PtInIconSuite(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  50.                              Handle theIconSuite)
  51.        =  {0x303c, 0x070E, 0xABC9};
  52. pascal Boolean PtInIconMethod(Point testPt, Rect *iconRect, IconAlignmentType alignment,
  53.                               IconGetter theMethod, void *yourDataPtr)
  54.        =  {0x303c, 0x090F, 0xABC9};
  55. pascal Boolean RectInIconID(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  56.                             short iconID)
  57.        =  {0x303c, 0x0610, 0xABC9};
  58. pascal Boolean RectInIconSuite(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  59.                                Handle theIconSuite)
  60.        =  {0x303c, 0x0711, 0xABC9};
  61. pascal Boolean RectInIconMethod(Rect *testRect, Rect *iconRect, IconAlignmentType alignment,
  62.                                 IconGetter theMethod, void *yourDataPtr)
  63.        =  {0x303c, 0x0912, 0xABC9};
  64. pascal OSErr IconIDToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  65.                          short iconID)
  66.        =  {0x303c, 0x0613, 0xABC9};
  67. pascal OSErr IconSuiteToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  68.                             Handle theIconSuite)
  69.        =  {0x303c, 0x0714, 0xABC9};
  70. pascal OSErr IconMethodToRgn(RgnHandle theRgn, Rect *iconRect, IconAlignmentType alignment,
  71.                              IconGetter theMethod, void *yourDataPtr)
  72.        =  {0x303c, 0x0915, 0xABC9};
  73. pascal OSErr SetSuiteLabel(Handle theSuite, short theLabel)
  74.        =  {0x303C, 0x0316, 0xABC9};
  75. pascal short GetSuiteLabel(Handle theSuite)
  76.        =  {0x303C, 0x0217, 0xABC9};
  77. pascal OSErr GetIconCacheData(Handle theCache, void **theData)
  78.        =  {0x303C, 0x0419, 0xABC9};
  79. pascal OSErr SetIconCacheData(Handle theCache, void *theData)
  80.        =  {0x303C, 0x041A, 0xABC9};
  81. pascal OSErr GetIconCacheProc(Handle theCache, IconGetter *theProc)
  82.        =  {0x303C, 0x041B, 0xABC9};
  83. pascal OSErr SetIconCacheProc(Handle theCache, IconGetter theProc)
  84.        =  {0x303C, 0x041C, 0xABC9};
  85. pascal OSErr PlotIconHandle(const Rect *theRect, IconAlignmentType align,
  86.                             IconTransformType transform, Handle theIcon)
  87.        =  {0x303C, 0x061D, 0xABC9};
  88. pascal OSErr PlotSICNHandle(const Rect *theRect, IconAlignmentType align,
  89.                             IconTransformType transform, Handle theSICN)
  90.        =  {0x303C, 0x061E, 0xABC9};
  91. pascal OSErr PlotCIconHandle(const Rect *theRect, IconAlignmentType align,
  92.                              IconTransformType transform, CIconHandle theCIcon)
  93.        =  {0x303C, 0x061F, 0xABC9};
  94.